package cn.git.controller;

import cn.git.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 测试controller
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-03-18 03:19:27
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/testForGet0001/{source}")
    public String testForGet0001(@PathVariable(value = "source") String source) {
        System.out.println("获取到传入source信息".concat(" : ").concat(source));
        return testService.test(source);
    }

}
